/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.facturacion.modelo;

import isd.tesoreria.modelo.CJ_Comprobante;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;

/**
 *
 * @author Claudio
 */
@Entity
@DiscriminatorValue("CJ")
public class FC_ItemCircuitoTesoreria extends FC_ItemCircuito {

    @JoinColumns({
    @JoinColumn(name = "FCTCII_MODULO", referencedColumnName = "GRCCBH_MODCOM", nullable = false,insertable=false, updatable=false),
    @JoinColumn(name = "FCTCII_CODCOM", referencedColumnName = "GRCCBH_CODCOM", nullable = false,insertable=false, updatable=false)
    })
    @ManyToOne
    CJ_Comprobante comprobante;

    public CJ_Comprobante getComprobante() {
        return comprobante;
    }

    public void setComprobante(CJ_Comprobante comprobante) {
        this.comprobante = comprobante;
    }

}
